#pragma once

#include "rSurface.h"
#include "IItemType.h"

#include <iostream>
#include <list>
#include <vector>

class rEngine
{
public:
	rEngine(void);
	~rEngine(void);

int RegisterType(IItemType*);
void OpenStream(std::iostream* stream);
void OpenFile(const char * filename);

void Render();

private:

	rBuffer pMainBuffer;
	std::vector<std::iostream*> pStreams;
	std::vector<IItemType*> pTypes;

};

